package com.xuecheng.order.config;

import com.alibaba.excel.EasyExcel;
import com.xuecheng.commons.model.vo.OrderDetailsVo;
import com.xuecheng.commons.model.vo.OrdersVo;
import com.xuecheng.order.domain.Orders;
import org.springframework.stereotype.Component;
import java.util.List;


@Component
//导出方法
public class ExcelUtil {

    public static void excelWrite(List<OrderDetailsVo> voList, String name){
        EasyExcel
                .write(name,OrderDetailsVo.class)
                .sheet()
                .doWrite(voList);
    }

}
